package com.mxgraph.costfunction;

import com.mxgraph.view.mxCellState;

/**
 * The type Mx const cost function.
 *
 * @author Mate  A constant cost function that returns <b>const</b> regardless of edge value
 */
public class mxConstCostFunction extends mxCostFunction {
    private double cost;

    /**
     * Instantiates a new Mx const cost function.
     *
     * @param cost the cost
     */
    public mxConstCostFunction(double cost) {
        this.cost = cost;
    }

    ;

    public double getCost(mxCellState state) {
        return cost;
    }

    ;
}
